//先导入一些必须的东西
import {
    DepartmentItem,
    DepartmentFormData,
  } from '@/types';
  import request from '@/utils/request';
  import { AxiosPromise } from 'axios';

/**
 * 获取班级选项
 * @param depId 部门id
 * @param roleId 角色id
 * @param pensonId 人员id
 * @returns 
 */
 export function listClassOption(depId: string, roleId: string, pensonId: string)
 :AxiosPromise<DepartmentItem[]>  {
    return request({
      url: '/selectOption?opType=class&depId=' + depId + '&roleId=' + roleId + '&pensonId=' + pensonId,
      method: 'get',
    });
  }